<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/table_data_tables.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:01 GMT -->

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>付款记录信息</title>

    <link rel="shortcut icon" href="favicon.ico">
    <link href="__PUBLIC__/dist/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

    <!-- Data Tables -->
    <link href="__PUBLIC__/dist/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/style.min862f.css?v=4.1.0" rel="stylesheet">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>{$info ? '编辑' : '新增'}付款记录信息</h5>
                    </div>
                    <div class="ibox-content">
                        <form id="myform" role="form" class="form-horizontal m-t" method="post">
                            {if condition="$businesses_id eq 0"}
                            <div class="form-group draggable ui-draggable">
                                <label class="col-sm-2 control-label">所属商家：</label>
                                <div class="col-sm-6">
                                    <select id="businesses_id" name="businesses_id" class="form-control" required>
                                        {foreach name="businesses" item="item"}
                                        {if condition="$item['id'] eq $info['businesses_id']"}
                                        <option value="{$item.id}" selected="selected">
                                            {$item.name}
                                        </option>
                                        {else/}
                                        <option value="{$item.id}">
                                            {$item.name}
                                        </option>
                                        {/if}
                                        {/foreach}
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            {else/}
                            <input type="hidden" name="businesses_id" value="{$businesses_id}">
                            {/if}
                            <div class="form-group draggable ui-draggable">
                                <label class="col-sm-2 control-label">付款编号：</label>
                                <div class="col-sm-6">
                                    <input type="text" class="form-control" id="pay_no" name="pay_no" value="{$pay_no}"
                                        placeholder="请输入付款编号" required>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group draggable ui-draggable">
                                <label class="col-sm-2 control-label">付款方式：</label>
                                <div class="col-sm-6">
                                    <select id="pay_mode" name="pay_mode" class="form-control" required>
                                        <option value="0" {if condition="$info['pay_mode'] eq 0"}selected="selected"{/if}>现金</option>
                                        <option value="1" {if condition="$info['pay_mode'] eq 1"}selected="selected"{/if}>微信</option>
                                        <option value="2" {if condition="$info['pay_mode'] eq 2"}selected="selected"{/if}>支付宝</option>
                                        <option value="3" {if condition="$info['pay_mode'] eq 3"}selected="selected"{/if}>银行转账</option>
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group draggable ui-draggable">
                                <label class="col-sm-2 control-label">付款类型：</label>
                                <div class="col-sm-6">
                                    <select id="amount_mode" name="amount_mode" class="form-control" required>
                                        <option value="0" {if condition="$info['amount'] eq 0"}selected="selected"{/if}>租金</option>
                                        <option value="1" {if condition="$info['amount'] eq 1"}selected="selected"{/if}>订金</option>
                                        <option value="2" {if condition="$info['amount'] eq 2"}selected="selected"{/if}>押金</option>
                                        <option value="3" {if condition="$info['amount'] eq 3"}selected="selected"{/if}>保证金</option>
                                        <option value="4" {if condition="$info['amount'] eq 4"}selected="selected"{/if}>逾期收费</option>
                                        <option value="5" {if condition="$info['amount'] eq 5"}selected="selected"{/if}>其他费用</option>
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group draggable ui-draggable">
                                <label class="col-sm-2 control-label">付款金额：</label>
                                <div class="col-sm-6">
                                    <input type="text" class="form-control" id="amount" name="amount" value="{$info.amount}"
                                        placeholder="请输入付款金额" required>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group draggable ui-draggable">
                                <label class="col-sm-2 control-label">积分：</label>
                                <div class="col-sm-6">
                                    <input type="text" class="form-control" id="point" name="point" value="{$info.point}"
                                        placeholder="请输入积分" required>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <!--详情描述-->
                            <div id="tab-1" class="tab-pane">
                                <div class="panel-body">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">备注</label>
                                        <div class="col-sm-10">
                                            <textarea name="remark" id="editor2">{$info.content}</textarea>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group draggable ui-draggable">
                                <div class="col-sm-12 col-sm-offset-3">
                                    <input type="hidden" name="customer_id" value="{$order.customer_id}">
                                    <input type="hidden" name="order_car_id" value="{$order.id}">
                                    <input type="hidden" name="creator_id" value="{$info.creator_id}">
                                    <input type="hidden" name="create_time" value="{$info.create_time}">
                                    <input type="hidden" name="id" value="{$info.id}">
                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                    <button class="btn btn-white" type="button" onclick="javascript:history.go(-1);">取消</button>
                                </div>
                            </div>
                        </form>
                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="__PUBLIC__/dist/js/jquery.min.js?v=2.1.4"></script>
    <script src="__PUBLIC__/dist/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="http://static.runoob.com/assets/jquery-validation-1.14.0/lib/jquery.js"></script>
    <script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/jquery.validate.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/libs/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/libs/ueditor/ueditor.all.min.js"> </script>

    <script>
        UE.getEditor('editor2');
        $().ready(function () {
            // 在键盘按下并释放及提交后验证提交表单
            $("#myform").validate({
                rules: {
                    pay_no: {
                        required: true,
                        rangelength: [2, 32]
                    }
                },
                messages: {
                    pay_no: {
                        required: "请输入支付编号",
                        rangelength: "支付编号长度不能小于 2 个字符"
                    }
                }
            })
        });
    </script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/table_data_tables.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:02 GMT -->

</html>